package com.carsys.service;

import com.carsys.entity.DetailedOrder;
import com.carsys.vo.VOrder;


import java.util.List;

public interface OrderService {
    public void addOrder(Integer uid, Integer cid, Integer getid, Integer backid, String oprices);

    List<VOrder> findAllOredrs();

    /**
     * 通过要查询的页面查询
     * @param page 要查询的页面
     * @param id 要查询的用户id
     * @return 返回订单列表
     */
    List<DetailedOrder> getOrderListByPageAndId(int page, int id);

    DetailedOrder getOrderById(int id);

    boolean delOrderById(int id);

    boolean editOrder(DetailedOrder detailedOrder);

    boolean delteOrderById(int id);
}
